<!DOCTYPE html>
<html lang="zh-CN"  xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="common/layout">
<head>
  <title>菜品修改</title>
</head>
<body>
<section layout:fragment="top_menu" style="text-align: left;padding-left: 20px">
  <a th:href="@{/admin/menu}" th:text="菜品详情"></a>
</section>

<section layout:fragment="content">
  <div class="main" style="margin: 5px" th:object="${menu}">
      <div class="photo-c" th:if="${menu.hasMenuPic()}">
        <a target="_blank" th:href="*{menuPicUrl}">
          <img th:src="${menu.menuPicUrl}" id="menu-img"  class="menu-img" alt="">
        </a>
        <br>
      <span th:text="${menu_info}" style='margin-right:20px;color:red'></span>
      </div>
      <div class="photo-c" th:unless="${menu.hasMenuPic()}">
        <img th:src="@{/img/avatar.png}"  class="menu-img" alt="">
        <br>
      <span th:text="${menu_info}" style='margin-right:20px;color:red'></span>
      </div>
  </div>
</section>

<section layout:fragment="extra_scripts">

</section>

</body>

</html>
